﻿#define _CRT_SECURE_NO_WARNINGS//模拟实现库函数strcpy
#include<stdio.h>
#include<assert.h>
char* my_strcpy(char* a, const char* b)
{
	char* ret = a;
	assert(a && b);
	while (*a++ = *b++)
	{
		;
	}
	return ret;
}
int main()
{
	char arr1[] = "#########";
	char arr2[] = "abcdef";

	printf("%s", my_strcpy(arr1, arr2));

	return 0;
}